using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
      
    }

    protected void Submit1_ServerClick(object sender, EventArgs e)
    {
        dumpForm();
    }

    private void dumpForm()
    {
        System.Text.StringBuilder displayValues = new System.Text.StringBuilder();
        System.Collections.Specialized.NameValueCollection postedValues = Request.Form;

        String nextKey;
        for (int i = 0; i < postedValues.AllKeys.Length - 1; i++)
        {
            nextKey = postedValues.AllKeys[i];
            if (nextKey.Substring(0, 2) != "__")
            {
                displayValues.Append("<br>");
                displayValues.Append(nextKey);
                displayValues.Append(" = ");
                displayValues.Append(postedValues[i]);
            }
        }


        this.Response.Write("Form Data > <br>" + displayValues.ToString());
    }
}
